package com.titaniume.redis02springboot.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * @program: study
 * @description:
 * @author: titaniume
 * @create: 2022-01-18 13:51
 */

@Component
@AllArgsConstructor
@NoArgsConstructor
@Data
//在企业中， 我们所有的pojo都会序列化
public class User implements Serializable {
    private String name;
    private int age;
}